<?php

namespace Fronts\Model;

class Link {

    public $urlId;
    public $urlName;
    public $urlLink;
    public $urlloadi;
    public $urlDate;
    public $urldateUpdate;
    public $urlActive;

    public function exchangeArray($data) {
        $this->urlId = (isset($data["urlId"])) ? $data["urlId"] : null;
        $this->urlName = (isset($data["urlName"])) ? $data["urlName"] : null;
        $this->urlLink = (isset($data["urlLink"])) ? $data["urlLink"] : null;
        $this->urlloadi = (isset($data["urlloadi"])) ? $data["urlloadi"] : null;
        $this->urlDate = (isset($data["urlDate"])) ? $data["urlDate"] : null;
        $this->urldateUpdate = (isset($data["urldateUpdate"])) ? $data["urldateUpdate"] : null;
        $this->urlActive = (isset($data["urlActive"])) ? $data["urlActive"] : null;
    }

    public function getArray() {
        $data = array();
        $data["urlId"] = $this->urlId;
        $data["urlName"] = $this->urlName;
        $data["urlLink"] = $this->urlLink;
        $data["urlloadi"] = $this->urlloadi;
        $data["urlDate"] = $this->urlDate;
        $data["urldateUpdate"] = $this->urldateUpdate;
        $data["urlActive"] = $this->urlActive;
        return $data;
    }

}
